package com.king.helloworld;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.king.helloworld.bean.HelloWorld;

/**
 * Java Bean HelloWorld
 * @author taomk
 * @version 1.0
 * @since 15-7-7 下午4:04
 */
public class Main {

	public static void main (String [] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext-bean.xml");
		HelloWorld helloWorld = (HelloWorld) context.getBean("helloWorld");

		helloWorld.hello();
	}
}
